// 动态加载外部链接
export function loadJS() {
    return new Promise((resolve) => {
      var script = document.createElement('script');
      script.type = 'text/javascript';
      script.src = 'http://showroom.nccloudmedia.com/uploads/js/20240507/dfb8628ab1d9ba3c89dd82391998b13e.js';
      // IE
      if (script.readyState) {
        script.onreadystatechange = () => {
          if (script.readyState == 'loaded'
            || script.readyState == 'complete') {
            script.onreadystatechange = null;
            resolve();
          }
        };
      } else {
        // 其他浏览器
        script.onload = function () {
          resolve();
        };
      }
      document.getElementsByTagName('head')[0].appendChild(script);
    })
  }
  